
import { Entity, NgField, NgObject, EntityList, NgList, NgDynamic, DynamicEntity, NgEntity } from '@farris/devkit';

@NgEntity({
    originalCode: "dd",
    nodeCode: "dds"
})
export class DdEntity extends Entity {

    @NgField({
        originalDataField: 'ID',
        dataField: 'id',
        primary: true,
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    id: string;

    @NgField({
        originalDataField: 'ParentID',
        dataField: 'parentID',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ParentID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    parentID: string;

    @NgField({
        originalDataField: 'ddzmc',
        dataField: 'ddzmc',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ddzmc',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    ddzmc: string;

    @NgField({
        originalDataField: 'rzsj',
        dataField: 'rzsj',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'rzsj',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    rzsj: string;

    @NgField({
        originalDataField: 'zzgw',
        dataField: 'zzgw',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'zzgw',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    zzgw: string;

    @NgField({
        originalDataField: 'zj',
        dataField: 'zj',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'zj',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    zj: string;

    @NgField({
        originalDataField: 'rybz',
        dataField: 'rybz',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'rybz',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    rybz: string;

}